﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class GameplayPVERpgWrapWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Gameplay.PVE.RpgWrap);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 13, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveToTarget", _m_MoveToTarget_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveToTargetByVector3", _m_MoveToTargetByVector3_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveToTargetPosition", _m_MoveToTargetPosition_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveToTargetPositionBySpecificDirection", _m_MoveToTargetPositionBySpecificDirection_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTransformDataWithParent", _m_SetTransformDataWithParent_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTransformData", _m_SetTransformData_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTransformDataXYZ", _m_SetTransformDataXYZ_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTransformDataAndLayer", _m_SetTransformDataAndLayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayBossTimeline", _m_PlayBossTimeline_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetModuleContainerLoadedCallback", _m_SetModuleContainerLoadedCallback_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetScreenShoot", _m_SetScreenShoot_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAnimationSpeed", _m_SetAnimationSpeed_xlua_st_);
            
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Gameplay.PVE.RpgWrap();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.RpgWrap constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Gameplay.PVE.RpgWrap();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.RpgWrap constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MoveToTarget_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _mover = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Transform _target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
                    float _speed = (float)LuaAPI.lua_tonumber(L, 3);
                    
                        var gen_ret = Gameplay.PVE.RpgWrap.MoveToTarget( _mover, _target, _speed );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MoveToTargetByVector3_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _startPosition;translator.Get(L, 1, out _startPosition);
                    UnityEngine.Transform _target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
                    float _speed = (float)LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.Vector3 _newPosition;
                    
                        var gen_ret = Gameplay.PVE.RpgWrap.MoveToTargetByVector3( _startPosition, _target, _speed, out _newPosition );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushUnityEngineVector3(L, _newPosition);
                        
                    
                    
                    
                    return 2;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MoveToTargetPosition_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _mover = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Vector3 _targetPosition;translator.Get(L, 2, out _targetPosition);
                    float _speed = (float)LuaAPI.lua_tonumber(L, 3);
                    
                        var gen_ret = Gameplay.PVE.RpgWrap.MoveToTargetPosition( _mover, _targetPosition, _speed );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MoveToTargetPositionBySpecificDirection_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _mover = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Vector3 _targetPosition;translator.Get(L, 2, out _targetPosition);
                    UnityEngine.Vector3 _speed;translator.Get(L, 3, out _speed);
                    UnityEngine.Vector3 _newPosition;
                    
                        var gen_ret = Gameplay.PVE.RpgWrap.MoveToTargetPositionBySpecificDirection( _mover, _targetPosition, _speed, out _newPosition );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushUnityEngineVector3(L, _newPosition);
                        
                    
                    
                    
                    return 2;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetTransformDataWithParent_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& translator.Assignable<UnityEngine.Transform>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable<UnityEngine.Transform>(L, 5)) 
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 3, out _forward);
                    float _scale = (float)LuaAPI.lua_tonumber(L, 4);
                    UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 5, typeof(UnityEngine.Transform));
                    
                    Gameplay.PVE.RpgWrap.SetTransformDataWithParent( _transform, _position, _forward, _scale, _parent );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.Transform>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) 
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 3, out _forward);
                    float _scale = (float)LuaAPI.lua_tonumber(L, 4);
                    
                    Gameplay.PVE.RpgWrap.SetTransformDataWithParent( _transform, _position, _forward, _scale );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.RpgWrap.SetTransformDataWithParent!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetTransformData_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 3, out _forward);
                    float _scale = (float)LuaAPI.lua_tonumber(L, 4);
                    
                    Gameplay.PVE.RpgWrap.SetTransformData( _transform, _position, _forward, _scale );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetTransformDataXYZ_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    float _p1 = (float)LuaAPI.lua_tonumber(L, 2);
                    float _p2 = (float)LuaAPI.lua_tonumber(L, 3);
                    float _p3 = (float)LuaAPI.lua_tonumber(L, 4);
                    float _f1 = (float)LuaAPI.lua_tonumber(L, 5);
                    float _f2 = (float)LuaAPI.lua_tonumber(L, 6);
                    float _f3 = (float)LuaAPI.lua_tonumber(L, 7);
                    float _scale = (float)LuaAPI.lua_tonumber(L, 8);
                    
                    Gameplay.PVE.RpgWrap.SetTransformDataXYZ( _transform, _p1, _p2, _p3, _f1, _f2, _f3, _scale );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetTransformDataAndLayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 3, out _forward);
                    float _scale = (float)LuaAPI.lua_tonumber(L, 4);
                    int _layer = LuaAPI.xlua_tointeger(L, 5);
                    
                    Gameplay.PVE.RpgWrap.SetTransformDataAndLayer( _transform, _position, _forward, _scale, _layer );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlayBossTimeline_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Playables.PlayableDirector _director = (UnityEngine.Playables.PlayableDirector)translator.GetObject(L, 1, typeof(UnityEngine.Playables.PlayableDirector));
                    Cinemachine.CinemachineBrain _brain = (Cinemachine.CinemachineBrain)translator.GetObject(L, 2, typeof(Cinemachine.CinemachineBrain));
                    Cinemachine.CinemachineVirtualCamera _origin = (Cinemachine.CinemachineVirtualCamera)translator.GetObject(L, 3, typeof(Cinemachine.CinemachineVirtualCamera));
                    Cinemachine.CinemachineVirtualCamera _bossCom = (Cinemachine.CinemachineVirtualCamera)translator.GetObject(L, 4, typeof(Cinemachine.CinemachineVirtualCamera));
                    Cinemachine.CinemachineVirtualCamera _after = (Cinemachine.CinemachineVirtualCamera)translator.GetObject(L, 5, typeof(Cinemachine.CinemachineVirtualCamera));
                    UnityEngine.Transform _followTarget = (UnityEngine.Transform)translator.GetObject(L, 6, typeof(UnityEngine.Transform));
                    
                    Gameplay.PVE.RpgWrap.PlayBossTimeline( _director, _brain, _origin, _bossCom, _after, _followTarget );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetModuleContainerLoadedCallback_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    XLua.LuaFunction _function = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction));
                    
                    Gameplay.PVE.RpgWrap.SetModuleContainerLoadedCallback( _transform, _function );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetScreenShoot_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.UI.UIExpansion _uiExpansion = (Yoozoo.UI.UIExpansion)translator.GetObject(L, 1, typeof(Yoozoo.UI.UIExpansion));
                    Yoozoo.UI.YGUI.YImage _image = (Yoozoo.UI.YGUI.YImage)translator.GetObject(L, 2, typeof(Yoozoo.UI.YGUI.YImage));
                    
                    Gameplay.PVE.RpgWrap.SetScreenShoot( _uiExpansion, _image );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetAnimationSpeed_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Animation _animation = (UnityEngine.Animation)translator.GetObject(L, 1, typeof(UnityEngine.Animation));
                    float _speed = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    Gameplay.PVE.RpgWrap.SetAnimationSpeed( _animation, _speed );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        
        
		
		
		
		
    }
}
